package com.d0325;

import java.time.LocalDate;

public class TestLocalDate {
    public static void main(String[] args) {
        LocalDate date1 = LocalDate.now();
        System.out.println(date1);

        LocalDate date2 = LocalDate.of(2020,02,02);
        System.out.println(date2);

        System.out.println(date2.getMonth());
        System.out.println(date2.getYear());

        String str ="2020-02-12";
        LocalDate date3 = LocalDate.parse(str);
        System.out.println(date3);
    }
}
